<template>
	<view class="u-content">
		<view class="list" v-for="(item,index) in consultingList" :key="index">
			<view class="title">
				窗口名称：
				<view class="name">
					{{item.WINDOW_NAME}}
				</view>
			</view>
			<view class="title">
				窗口地址：
				<view class="name">
					{{item.WINDOW_ADDRESS}}
				</view>
			</view>
			<view class="title">
				邮政编码：<text>{{item.EMAIL}}</text>
			</view>
			<view class="title">
				工作时间：
				<view class="name">
					{{item.WINDOW_TIME}}
				</view>
			</view>
			<view class="title">
				电话号码：<text>{{item.PHONE_NUMBER}}</text>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default{
		data() {
			return {
				itemCode: '',
				consultingList: []
			}
		},
		onLoad(option){
			this.itemCode = option.itemCode;
			this.selectItemDetail();
		},
		methods:{
			selectItemDetail(){
				uni.showLoading({
					title: '搜索中...',
					mask: true
				});
				this.$ajax({
					url: '/api/wwwBiz/selectItemDetail',
					method: 'POST',
					data:{
						itemCode:this.itemCode
					}
				}).then(res =>{
					if (res.code == 200) {
							this.consultingList = res.data.data7;
						}
					}).finally(()=>{
					uni.hideLoading();
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.u-content{
		width: 100%;
		height: 100%;
		overflow: hidden;
		.list{
			margin: 70rpx 50rpx;
			.title{
				margin: 40rpx 0;
				font-size: 28rpx;
				line-height: 44rpx;
				color: #999999;
				.name{
					margin: 20rpx 0;
					font-size: 28rpx;
					line-height: 44rpx;
					color: #333333;
				}
				text{
					margin: 20rpx 0;
					font-size: 28rpx;
					line-height: 44rpx;
					color: #333333;
				}
			}
		}
		
	}
</style>
